package net.ikenway.springboot.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScans;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

@SpringBootApplication
@EnableJpaRepositories(value = "net.ikenway.springboot.demo.Dao")
@ComponentScans({
        @ComponentScan(basePackages = "net.ikenway.springboot.demo.Service"),
        @ComponentScan(basePackages = "net.ikenway.springboot.demo.Config"),
        @ComponentScan(basePackages = "net.ikenway.springboot.demo.Utils")
})
public class DemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(DemoApplication.class, args);
    }
}
